//引入mysql模块
const mysql = require("mysql");
//创建连接池
const pool = mysql.createPool({
    host: "8.129.144.128", //域名
    port: "3306", //端口号
    user: "root", //管理员   
    password: "oSq50266", //密码，默认为空
    database: "websocket", //需要连接的数据库
    connectionLimit: 15 //连接池数量，默认15
});
//导出连接池对象
module.exports = pool;